<!-- html -->
<template>
  <span class="span2" v-globalAdd="message">我是全局指令</span>
</template>

<!-- js或ts -->
<script lang="ts">
export default {
  name: 'globalDirectiveTest1'
}
</script>

<!-- js或ts -->
<script setup lang="ts">
import { ref } from 'vue'
let message = ref('，我是参数')
</script>

<!-- 样式 -->
<style scoped></style>